Integrand size = 12, antiderivative size = 51 \[ \int \frac {1}{(3+3 \sin (e+f x))^2} \, dx=-\frac {\cos (e+f x)}{3 f (3+3 \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 f (9+9 \sin (e+f x))} \]
[Out]
Time = 0.02 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.08, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2729, 2727} \[ \int \frac {1}{(3+3 \sin (e+f x))^2} \, dx=-\frac {\cos (e+f x)}{3 f \left (a^2 \sin (e+f x)+a^2\right )}-\frac {\cos (e+f x)}{3 f (a \sin (e+f x)+a)^2} \]
[In]
[Out]
Rule 2727
Rule 2729
Rubi steps \begin{align*} \text {integral}& = -\frac {\cos (e+f x)}{3 f (a+a \sin (e+f x))^2}+\frac {\int \frac {1}{a+a \sin (e+f x)} \, dx}{3 a} \\ & = -\frac {\cos (e+f x)}{3 f (a+a \sin (e+f x))^2}-\frac {\cos (e+f x)}{3 f \left (a^2+a^2 \sin (e+f x)\right )} \\ \end{align*}
Time = 0.16 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.00 \[ \int \frac {1}{(3+3 \sin (e+f x))^2} \, dx=-\frac {-3+4 \cos (e+f x)+\cos (2 (e+f x))-4 \sin (e+f x)+\sin (2 (e+f x))}{54 f (1+\sin (e+f x))^2} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.58 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.75
method | result | size |
risch | \(-\frac {2 i \left (i+3 \,{\mathrm e}^{i \left (f x +e \right )}\right )}{3 f \,a^{2} \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )^{3}}\) | \(38\) |
parallelrisch | \(\frac {-4-6 \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-6 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{3 f \,a^{2} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}\) | \(48\) |
derivativedivides | \(\frac {-\frac {2}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1}+\frac {2}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}-\frac {4}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}}{a^{2} f}\) | \(53\) |
default | \(\frac {-\frac {2}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1}+\frac {2}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}-\frac {4}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}}{a^{2} f}\) | \(53\) |
norman | \(\frac {-\frac {2 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{f a}-\frac {2 \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f a}-\frac {4}{3 a f}}{a \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}\) | \(63\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 95, normalized size of antiderivative = 1.86 \[ \int \frac {1}{(3+3 \sin (e+f x))^2} \, dx=\frac {\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) - 1\right )} \sin \left (f x + e\right ) + 2 \, \cos \left (f x + e\right ) + 1}{3 \, {\left (a^{2} f \cos \left (f x + e\right )^{2} - a^{2} f \cos \left (f x + e\right ) - 2 \, a^{2} f - {\left (a^{2} f \cos \left (f x + e\right ) + 2 \, a^{2} f\right )} \sin \left (f x + e\right )\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 221 vs. \(2 (46) = 92\).
Time = 0.69 (sec) , antiderivative size = 221, normalized size of antiderivative = 4.33 \[ \int \frac {1}{(3+3 \sin (e+f x))^2} \, dx=\begin {cases} - \frac {6 \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )}}{3 a^{2} f \tan ^{3}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 a^{2} f \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 a^{2} f \tan {\left (\frac {e}{2} + \frac {f x}{2} \right )} + 3 a^{2} f} - \frac {6 \tan {\left (\frac {e}{2} + \frac {f x}{2} \right )}}{3 a^{2} f \tan ^{3}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 a^{2} f \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 a^{2} f \tan {\left (\frac {e}{2} + \frac {f x}{2} \right )} + 3 a^{2} f} - \frac {4}{3 a^{2} f \tan ^{3}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 a^{2} f \tan ^{2}{\left (\frac {e}{2} + \frac {f x}{2} \right )} + 9 a^{2} f \tan {\left (\frac {e}{2} + \frac {f x}{2} \right )} + 3 a^{2} f} & \text {for}\: f \neq 0 \\\frac {x}{\left (a \sin {\left (e \right )} + a\right )^{2}} & \text {otherwise} \end {cases} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 117 vs. \(2 (51) = 102\).
Time = 0.19 (sec) , antiderivative size = 117, normalized size of antiderivative = 2.29 \[ \int \frac {1}{(3+3 \sin (e+f x))^2} \, dx=-\frac {2 \, {\left (\frac {3 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {3 \, \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 2\right )}}{3 \, {\left (a^{2} + \frac {3 \, a^{2} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {3 \, a^{2} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {a^{2} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}\right )} f} \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.92 \[ \int \frac {1}{(3+3 \sin (e+f x))^2} \, dx=-\frac {2 \, {\left (3 \, \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 3 \, \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 2\right )}}{3 \, a^{2} f {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{3}} \]
[In]
[Out]
Time = 6.78 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.49 \[ \int \frac {1}{(3+3 \sin (e+f x))^2} \, dx=-\frac {2\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )-\frac {2\,\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left ({\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2-3\right )}{3}}{a^2\,f\,{\left (\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )+\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )\right )}^3} \]
[In]
[Out]